<!DOCTYPE html>
<html lang="en">
<#include "common/head.html">

<body class="fix-header fix-sidebar">

<!-- Preloader - style you can find in spinners.css -->
<div class="preloader">
    <svg class="circular" viewBox="25 25 50 50">
        <circle class="path" cx="50" cy="50" r="20" fill="none"
                stroke-width="2" stroke-miterlimit="10"/>
    </svg>
</div>
<!-- Main wrapper  -->
<div id="main-wrapper">
    <!-- header header  -->
    <#include "common/header.html">
    <!-- End header header -->
    <!-- Left Sidebar  -->
    <#include "common/nav.html">
    <!-- End Left Sidebar  -->
    <!-- Page wrapper  -->
    <div class="page-wrapper">
        <!-- 锐高软件 -->
        <#include "/common/ruigao.html">

        <!--
                    作者：offline
                    时间：2018-03-26
                    描述：查看员工信息
                -->
        <div class="container-fluid">

            <div class="row justify-content-center">
                <div class="col-12">
                    <div class="card">
                        <div class="card-body">
                            <div class="card-content">
                                <!-- Left sidebar -->
                                <div class="inbox-leftbar">
                                    <a class="btn btn-danger btn-block waves-effect waves-light"
                                       href="doissueadd"> <font
                                            style="vertical-align: inherit;"> <font
                                            style="vertical-align: inherit;">添加问题</font>
                                    </font>
                                    </a>

                                </div>

                            </div>
                            <!-- End Left sidebar -->

                            <div>

                                <div role="toolbar">
                                    <div class="btn-group">
                                        <button class="btn btn-light waves-effect" type="button">
                                            <i class="mdi mdi-archive font-18 vertical-middle"></i>
                                        </button>
                                        <button class="btn btn-light waves-effect" type="button">
                                            <i class="mdi mdi-alert-octagon font-18 vertical-middle"></i>
                                        </button>
                                        <button class="btn btn-light waves-effect" type="button">
                                            <i class="mdi mdi-delete-variant font-18 vertical-middle"></i>
                                        </button>
                                    </div>

                                    <div class="btn-group">
                                        <button type="button" class="btn btn-primary">类型</button>
                                        <button type="button" class="btn btn-primary dropdown-toggle"
                                                data-toggle="dropdown" aria-expanded="false">
                                            <span class="caret"></span>
                                        </button>
                                        <ul class="dropdown-menu" role="menu" x-placement="bottom-start"
                                            style="position: absolute; transform: translate3d(61px, 40px, 0px); top: 0px; left: 0px; will-change: transform;">

                                            <#list typelist as item>
                                            <li>
                                                <a href="doissuelist?istype=${item.typeTypeid}">${item.typeTypevalue}</a>
                                            </li>
                                        </
                                        #list>
                                        </ul>

                                        <input type="hidden" class="initsta" value="0">

                                    </div>

                                </div>

                                <div class="mt-4">
                                    <br/>
                                    <table class="table">
                                        <thead>
                                        <tr>
                                            <th>问题名称</th>
                                            <th>问题答案</th>
                                            <th>问题类型</th>
                                            <th>操作</th>
                                        </tr>
                                        </thead>
                                        <tbody class="information">

                                        <#list Page.pageList as item>

                                        <tr>
                                            <#if (Page.pageList)??>

                                            <#if (item.issueName)??>
                                            <td>${item.issueName}</td>
                                            <#else>
                                            <td>暂无</td>
                                        </
                                        #if>

                                        <#if (item.issueAnswer)??>
                                        <td>${item.issueAnswer}</td>
                                        <#else>
                                        <td>暂无</td>
                                        </
                                        #if>

                                        <#if (item.issueType)??>
                                        <#if item.issueType==1>
                                        <td>文本类型</td>
                                        <#else>
                                        <td>图片类型</td>
                                    </
                                    #if>

                                </
                                #if>
                                <td>
                                    <button type='button' class='btn btn-success btn-sm btn-rounded m-b-2 m-l-5'>
                                        <a href=doissueinfo?issueid=${item.issueId} class='typeinfo'
                                           style='color: white;'>查看</a>
                                    </button>
                                    <button type='button' class='btn btn-success btn-sm btn-rounded m-b-2 m-l-5'>
                                        <a href=doissueup?issueid=${item.issueId} class='typeinfo'
                                           style='color: white;'>更新</a>
                                    </button>
                                    <button type='button' class='btn btn-sm btn-rounded m-b-2 dels'
                                            style='background: #d01d13d6;'>
                                        <a data-delid="${item.issueId}" class='issuedel' style='color: white;'>删除</a>
                                    </button>
                                </td>
                            </
                            #if>
                            </tr>
                        </
                        #list>

                        </tbody>
                        </table>
                        <div class="table-responsive m-t-40">
                            <div id="example23_wrapper" class="dataTables_wrapper">
                                <div class="dataTables_paginate paging_simple_numbers"
                                     id="example23_paginate">

                                    <a href="doissuelist?form=1"
                                       class="paginate_button" aria-controls="example23"
                                       data-dt-idx="7" tabindex="0" id="example23"> <font
                                            style="vertical-align: inherit;"> <font
                                            style="vertical-align: inherit;"></font>首页
                                    </font>
                                    </a>

                                    <#if Page.getHasPrevPage() == true>
                                    <a href="doissuelist?form=${Page.prevPage}&istype=${istype}"
                                       class="paginate_button previous disabled"
                                       aria-controls="example23" data-dt-idx="0" tabindex="0"
                                       id="example23_previous"><font
                                            style="vertical-align: inherit;"><font
                                            style="vertical-align: inherit;">上一页</font></font></a>
                                </
                                #if>

                                <#if Page.getHasNextPage() == true>
                                <a href="doissuelist?form=${Page.nextPage}&istype=${istype}"
                                   class="paginate_button next" aria-controls="example23"
                                   data-dt-idx="7" tabindex="0" id="example23_next"><font
                                        style="vertical-align: inherit;"><font
                                        style="vertical-align: inherit;">下一页</font></font></a>
                            </
                            #if>
                            <a href="doissuelist?form=${Page.totalPage}&istype=${istype}"
                               class="paginate_button" aria-controls="example23"
                               data-dt-idx="7" tabindex="0" id="example23"> <font
                                    style="vertical-align: inherit;"> <font
                                    style="vertical-align: inherit;"></font>末页
                            </font>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
            <div>
            </div>
        </div>
    </div>
</div>
</div>
</div>
</div>
</div>
<!-- End Container fluid  -->
<!-- footer -->
<#include "common/footer.html">
<!-- End footer -->
<!-- End Page wrapper  -->
<#include "common/js.html">

<script type="text/javascript" src="/js/util/issue_list.js"></script>

</body>

</html>